<?php

   $conn= mysql_connect("localhost","root","root") or die("Could not connect to MySQL");
   mysql_select_db("postit");
     
   $q=mysql_query("SELECT * FROM postit.user WHERE username='".$_REQUEST['username']."' AND password='".$_REQUEST['password']."'");
   while($e=mysql_fetch_assoc($q))
         $output[]=$e;

   print(json_encode($output));    
   mysql_close();

?>

